<?php
/**
 * Created by PhpStorm
 * User: ZhouFurong
 * Date: 2020/12/3
 * Time: 16:36
 */


namespace App\AbstractFactory;

class FileCache implements CacheAbstractFactoryInterFace
{
    protected $array = [];

    public function put($key, $str)
    {
        return $this->array[$key] = $str;
    }

    public function get($key)
    {
        return $this->array[$key];
    }
}